// Ishield script file for Sound Companion Jr. by Jeff Patterson
// 6/24/95 modified 9/9/97
declare
string szText [ 255 ];
string szDisk [3];
string szTemp [255];
string szDefPath [255];
string szBitmapPath [255];
string szResultPath [255];
string szResultPathX [255];
string szNotepadPath [255];
string szProgramPath [255];
string szLicensePath [255];
string szWorkingPath [255];
string szReadme [255];
string szQtPath [255];
string szIconPath [ 255 ];
string szFileName [255];
string szPathFile [ 255 ];
number nspace;
number ntemp;
number listID;
number nTextMaxLines;
number nFontPointSize;
number nStatusWindowID;
number nCheck;
number SPACE_NEEDED;
program
anyword:
SetColor ( STATUSBAR, RED );
// Blue Gradiant from top to bottom
SetColor ( BACKGROUND,
QUAD( BK_RESET, 0, 0, 0 ) );
SetColor ( BACKGROUND,
QUAD( BK_VERT_TOP, 0, 0, 255 ) );
SetColor ( BACKGROUND,
QUAD( BK_VERT_BOTTOM, 0, 0, 50 ) );
SetColor ( BACKGROUND,
QUAD( BK_COMPLETE, 0, 0, 0 ) );
SPACE_NEEDED = 1452102;
SetFont (FONT_TITLE, STYLE_NORMAL, "System" );
SetTitle ("Sound Companion Jr. Demo Installation Program", 24, BLACK );
// MS look routine
nTextMaxLines = 3;
nFontPointSize = 9;
nStatusWindowID = StatusCreate( STYLE_DEFAULT ,
nTextMaxLines ,
"System" ,
nFontPointSize ,
STYLE_NORMAL );
StatusSelect( nStatusWindowID );
//Enable ( BITMAPFADE );
Enable ( EXIT );
Disable ( HELP );
Disable ( PAUSE );
Disable ( INFO );
Enable ( FEEDBACK_OPERATION );
Enable ( STATUS );
Enable ( BACKGROUND );
GetDisk( TARGETDIR, szDisk );
szDefPath = szDisk ^ "Sound_Jr";
SetStatusWindow ( 10, "Installing Sound Companion Jr. Demo" );
TargetLocation:
AskPath ( "Please enter the desired location for Sound Companion Jr?", szDefPath, szResultPath );
if LAST_RESULT = 0 then call ConfirmCancel;
endif;
if szResultPath = SRCDIR then
MessageBox ( "The target location must be different than the installation source. Please specify a different location.", SEVERE );
goto TargetLocation;
endif;
CreateDir( szResultPath );
if LAST_RESULT = 0 then goto DirCreated;
endif;
MessageBox ( "Unable to create directory. Please enter a valid path", SEVERE );
goto TargetLocation;
DirCreated:
GetDiskSpace ( szResultPath );
if LAST_RESULT < SPACE_NEEDED then
MessageBox ( "Not enough space on the hard drive specified. 1.5 megabytes of free hard disk space are needed. Please make more room or try another drive.", SEVERE );
goto TargetLocation;
endif;
SetStatusWindow ( 10, "Ready to copy files." );
TARGETDIR = szResultPath;
SetStatusWindow ( 15, "Installing Sound Companion Jr. files ..." );